<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/validateEngine/jquery.validationEngine.min.js',2); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/validateEngine/jquery.validationEngine-zh_CN.js',2); ?>
<?php Yii::app()->clientScript->registerCssFile(Yii::app()->params['static'].'assets/css/validationEngine.jquery.css'); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/bootbox.min.js',2); ?>
<div class="page-header">
							<h1>
							问题添加
							</h1>
</div>
<div class="row">
	<div class="col-xs-12">
		<div class="row">
				<div class="col-xs-12">
										<div class="tabbable">
											<ul class="nav nav-tabs padding-12 tab-color-blue background-blue" id="myTab4">
												<li class="active">
													<a data-toggle="tab" href="#form1"><i class="icon-edit"></i>编辑试卷</a>
												</li>
                                                <li class="">
													<a data-toggle="tab" href="#form2">预览试卷</a>
												</li>
											</ul>

											<div class="tab-content">
												<div id="form1" class="tab-pane active">
												   <?php  echo $this->renderPartial("addquestion",array('sur'=>$sur)); ?>
												</div>
                                                <div id="form2" class="tab-pane">
													<?php  echo $this->renderPartial("previewsurvey",array('sur'=>$sur,'qus'=>$qus)); ?>
												</div>
												
												
											</div>
										</div>
				</div>
		</div>
	</div>
</div>
<script type="text/javascript">
  jQuery(function($){
	  
	  <?php
	      if(Yii::app()->user->hasFlash('addquestion')){
			 echo 'bootbox.alert("'.Yii::app()->user->getFlash('addquestion').'",function(){});';  
		  }
	  ?>
	  
  })
</script>